//
//  CBCReadViewController.h
//  CBCReader
//
//  Created by Labanotation on 16/5/30.
//  Copyright © 2016年 okwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CBCRecordModel.h"
#import "CBCReadView.h"
typedef NS_ENUM(NSInteger, readResultType) {
    readSuccess = 0,
    NoContent    =  1,
    NetworkError   =  2,
    readResultLoading = 3,//正在加载
};



@class CBCReadViewController;
@protocol CBCReadViewControllerDelegate <NSObject>
-(void)readViewEditeding:(CBCReadViewController *)readView;
-(void)readViewEndEdit:(CBCReadViewController *)readView;
@end
@interface CBCReadViewController : UIViewController
@property (nonatomic,strong) CBCContentModel *content; //显示的内容
@property (nonatomic,strong) CBCChapterModel * chapterModel;   //阅读进度
@property (nonatomic,strong) CBCRecordModel *recordModel;   //阅读进度
@property (nonatomic,strong) CBCReadView * readView;
@property (nonatomic,  weak)  id<CBCReadViewControllerDelegate>delegate;
@property (nonatomic,strong) NSString * page;
@property (nonatomic,assign)readResultType readType;
@end
